Package jeresources.jei.worldgen
Class WorldGenWrapper
java.lang.Object
jeresources.jei.worldgen.WorldGenWrapper
- All Implemented Interfaces:
mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback,mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
public class WorldGenWrapper
extends Object
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Draw additional info about the recipe.net.minecraft.world.item.ItemStackgetBlock()List<net.minecraft.world.item.ItemStack>getDrops()intList<net.minecraft.network.chat.Component>getTooltipStrings(double mouseX, double mouseY) Get the tooltip for whatever is under the mouse.voidonTooltip(mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, List<net.minecraft.network.chat.Component> tooltip) Change the tooltip for an ingredient.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
handleClick, handleInput, setIngredients
-
Field Details
-
X_OFFSET
protected static final int X_OFFSET- See Also:
-
Y_OFFSET
protected static final int Y_OFFSET- See Also:
-
X_AXIS_SIZE
protected static final int X_AXIS_SIZE- See Also:
-
Y_AXIS_SIZE
protected static final int Y_AXIS_SIZE- See Also:
-
ORE_SLOT_NAME
- See Also:
-
-
Constructor Details
-
WorldGenWrapper
-
-
Method Details
-
getLineColor
public int getLineColor() -
getBlock
public net.minecraft.world.item.ItemStack getBlock() -
getDrops
-
drawInfo
public void drawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Description copied from interface:mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionDraw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategoryExtension.getTooltipStrings(double, double)- Specified by:
drawInfoin interfacemezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionmouseX- the X position of the mouse, relative to the recipe.mouseY- the Y position of the mouse, relative to the recipe.- See Also:
-
for a simple class for drawing things.for useful functions.
-
getTooltipStrings
Description copied from interface:mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionGet the tooltip for whatever is under the mouse. ItemStack and fluid tooltips are already handled by JEI, this is for anything else. To add to ingredient tooltips, seeIRecipeSlotBuilder.addTooltipCallback(IRecipeSlotTooltipCallback)To add tooltips for a recipe category, seeIRecipeCategory.getTooltipStrings(Object, IRecipeSlotsView, double, double)- Specified by:
getTooltipStringsin interfacemezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension- Parameters:
mouseX- the X position of the mouse, relative to the recipe.mouseY- the Y position of the mouse, relative to the recipe.- Returns:
- tooltip strings. If there is no tooltip at this position, return an empty list.
-
onTooltip
public void onTooltip(mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, List<net.minecraft.network.chat.Component> tooltip) Description copied from interface:mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallbackChange the tooltip for an ingredient.- Specified by:
onTooltipin interfacemezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
-